package com.wxc.contants;

/**
 * @ClassName: Constant
 * TODO:类文件简单描述
 * @Author: 小霍
 * @UpdateUser: 小霍
 * @Version: 0.0.1
 */
public class Constant {
    /**
     * Contants 加入 用户名 key 常量
     * 用户名称 key
     */
    public static final String JWT_USER_NAME = "jwt-user-name-key";

    /**
     * Contants 加入 用户名 key 常量
     * 用户id key
     */
    public static final String JWT_USER_ID = "jwt-user-id-key";

    /**
     * 角色信息key
     */
    public static final String ROLES_INFOS_KEY = "roles-infos-key";

    /**
     * 权限信息key
     */
    public static final String PERMISSIONS_INFOS_KEY = "permissions-infos-key";

    /**
     * 业务访问token
     */
    public static final String ACCESS_TOKEN = "Authorization";


    /**
     * 主动去刷新 token key(适用场景 比如修改了用户的角色/权限去刷新token)
     */
    public static final String JWT_REFRESH_KEY = "jwt-refresh-key_";

    /**
     * 标记用户是否已经被锁定
     */
    public static final String ACCOUNT_LOCK_KEY = "account-lock-key_";
    /**
     * 标记用户是否已经删除
     */
    public static final String DELETED_USER_KEY = "deleted-user-key_";

    /**
     * 用户权鉴缓存 key
     */
    public static final String IDENTIFY_CACHE_KEY = "shiro-cache_";
    /**
     * 用户权鉴缓存 key
     */
    public static final String ACCOUNT_LOCK = "2";

    /**
     * 刷新token
     */
    public static final String REFRESH_TOKEN = "refresh_token";

}
